package com.example.role.service;



import com.example.role.pojo.User;
import com.example.role.util.ServerResponse;
import com.example.role.util.TableServerResponse;


import javax.servlet.http.HttpServletResponse;

public interface IUserService {
        ServerResponse login(User user, HttpServletResponse response);

        ServerResponse forgetPassword(User user);

        ServerResponse updatePassword(User user);

        TableServerResponse getUser(Integer page, Integer limit);

        ServerResponse updateRole(User user);

        ServerResponse getUserinfo(String token);

        ServerResponse selectUserById(Integer id);

        ServerResponse updateUser(String token, User user);

        ServerResponse addUser(User user);

        ServerResponse deleteUser(String ids);
}
